package org.crud4j.validator;

import java.lang.annotation.Annotation;

public interface ValueValidator {

	public void init(Annotation annotation);

	/**
	 * Validates the given value with the given annotation
	 * 
	 * @param value
	 * @param annotation
	 * @throws ValueValidatorException
	 */
	public void validate(Object value) throws ValueValidatorException;

	@SuppressWarnings("unchecked")
	public Class getAnnotationClass();

}
